#! /bin/sh

GW_VERSION_V=$(head -n 1 VERSION)
FUSE_VERSION_V=$(tail -n 1 VERSION)
GW_VERSION=${GW_VERSION_V#"v"}
FUSE_VERSION=${FUSE_VERSION_V#"v"}

pkill dicom
apt-get remove surcloud-gateway -y
apt-get remove surcloud-hybrid-storage -y
dpkg -i surcloud-gateway-$GW_VERSION.deb
dpkg -i surcloud-hybrid-storage-$FUSE_VERSION.deb

md5sum $(which dicom)
md5sum $(which sur_mount)
